package com.salt.modules.notice.feign;

import com.salt.common.constant.Common;
import com.salt.modules.notice.hystrix.NoticeUserCheckClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description
 * @Author salt
 * @Date 2022/4/15
 * @Version 1.0.1
 */
@FeignClient(name = Common.Service.SALT_NOTICE_SERVICE_NAME,
        path = Common.Service.SALT_NOTICE_USER_URL_PREFIX,
        fallbackFactory = NoticeUserCheckClientHystrix.class)
public interface NoticeUserCheckClient {

    String API_PREFIX = "/client";
    String DELETE = API_PREFIX + "/delete";

    @PostMapping(DELETE)
    public void deleteByTime(@RequestParam("time") String time);
}
